<!--[pnpageaddvar name="javascript" value="modules/crpCalendar/pnjavascript/datepicker/datepicker.js"]-->
<!--[pnpageaddvar name="stylesheet" value="modules/crpCalendar/pnjavascript/datepicker/css/datepicker.css"]-->

<!--[pnsessiongetvar name="crpCalendar_choosed_view" assign=choosed_view]-->

<form class="z-form" action="<!--[pnmodurl modname=crpCalendar type=user func=$choosed_view]-->" method="post" enctype="application/x-www-form-urlencoded">
    <div>
        <fieldset>
            <!--[if $enablecategorization]-->
            <label for="events_category"><!--[gt text="Category"]--></label>
            <!--[selector_category category=$mainCategory name="events_category" selectedValue=$events_category defaultValue="0" __defaultText="All"]-->
            <!--[/if]-->

            <!--[if $choosed_view neq "view" && $choosed_view neq "get_partecipations"  && $choosed_view neq "year_view"]-->

            <!--[if $choosed_view eq "month_view"]-->
            <label for="crpcalendar_viewForm"><!--[gt text="View as"]--></label>
            <select id="crpcalendar_viewForm" name="viewForm">
                <option value="table"<!--[if $viewForm eq 'table']--> selected="selected"<!--[/if]-->><!--[gt text="Table"]--></option>
                <option value="list"<!--[if $viewForm eq 'list']--> selected="selected"<!--[/if]-->><!--[gt text="List"]--></option>
            </select>
            <!--[/if]-->

            <!--[pnajaxheader modname=crpCalendar filename=crpcalendar.js nobehaviour=true noscriptaculous=true]-->
            <!--[pnpageaddvar name="javascript" value="modules/crpCalendar/pnjavascript/datepicker/datepicker.js"]-->
            <!--[pnpageaddvar name="stylesheet" value="modules/crpCalendar/pnjavascript/datepicker/css/datepicker.css"]-->
            <!--[html_select_date time=$t end_year="+4" display_months=false display_years=false id="start_datefield-dd"]-->
            <!--[html_select_date time=$t end_year="+4" display_days=false display_years=false id="start_datefield-mm"]-->
            <!--[html_select_date time=$t start_year=$crpcalendar_start_year end_year="+4" display_days=false display_months=false id="start_datefield"]-->

            <!--[elseif $choosed_view neq "get_partecipations"  && $choosed_view neq "year_view"]-->
            <label for="crpcalendar_typeList"><!--[gt text="Status"]--></label>
            <select id="crpcalendar_typeList" name="typeList">
                <option value=""><!--[gt text="Not specified"]--></option>
                <option value="upcoming"<!--[if $typeList eq 'upcoming']--> selected="selected"<!--[/if]-->><!--[gt text="Upcoming"]--></option>
                <option value="archive"<!--[if $typeList eq 'archive']--> selected="selected"<!--[/if]-->><!--[gt text="Archived"]--></option>
            </select>
            <!--[/if]-->

            <input name="submit" type="submit" value="<!--[gt text="Submit"]-->" />
            <input name="clear" type="submit" value="<!--[gt text="Clear"]-->" />

        </fieldset>
    </div>
</form>

<script type="text/javascript">
    Event.observe(window, 'load', function(){crpCalendarFilterInit();}, false);
</script>
